/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"A505CC68-7E31-4A2C-A5D2-CDD2D7BA028A",variableType:8}
 */
var fTotal = 0;

/**
 * @param {JSEvent} [event]  the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"83CCD9C5-F8A2-487B-9F8A-48ACE4D5F0A7"}
 */
function calcularTotal(event) {
	fTotal = 0
	for (var i = 1 ; i <= foundset.getSize() ; i++)
	{
		var $rcd = foundset.getRecord(i)
		fTotal += $rcd.importe
	}
	return true
}
